/* 打印样式优化 */
@media print {
  /* 避免浏览器默认边距影响 */
  @page {
    margin: 10mm;
    box-shadow: none;
  }

  * {
    font-family: "Times New Roman", Times, serif !important;
    color: #000;
    font-size:  11pt;
  }

   body {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items:  center;
  }
  .print-table th,
  .print-table td {
    border: #000 1px solid !important;
    padding: 4px;
  }
}


.print-table {
  width: 100%;

  /* 针对针式打印机的优化 */
  // font-size: 13px;
  border: 1px solid #ddd;
  border-collapse: collapse;
  table-layout: fixed;

  .num {
    width: 10%;
  }

  .name {
    width: 40%;
  }

  .tableware {
    width: 30%;
  }

  .ratio {
    width: 20%;
  }
}

.print-table th,
.print-table td {
  padding: 8px 10px;
  text-align: center;
  word-break: break-all;

  /* 确保单元格内容不溢出 */
  white-space: normal;
  border: 1px solid #ddd;
  font-weight: normal;
}

/* 文本对齐样式 */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.print-page-container{
  width: 80mm;
  padding: 0 2mm;
  font-size: 9pt;
  margin: 0 auto;
}